Skip to content

deployments: remove model-specific encryption handlers section#2923

Merged
Connor Braa (cwlbraa) merged 1 commit intomainfrom
remove-model-specific-encryption-handlers
Mar 4, 2026
Merged

deployments: remove model-specific encryption handlers section#2923
Connor Braa (cwlbraa) merged 1 commit intomainfrom
remove-model-specific-encryption-handlers

Conversation

@cwlbraa
Copy link
Copy Markdown
Contributor

@cwlbraa Connor Braa (cwlbraa) commented Mar 4, 2026

Remove the "Model-specific handlers" subsection from the encryption at-rest docs

Why

The @encryption.encrypt.json.assistant / @encryption.encrypt.json.run sub-decorator pattern shown in this section does not exist in the langgraph_sdk Encryption class. The class only exposes encrypt.blob, encrypt.json, decrypt.blob, decrypt.json, and context decorators — no further chaining to model types is supported.

These model-specific annotations were removed from the SDK a while ago, but I must've forgotten to update the docs or lost a commit at the end of the long-lived PR that added this doc.

Verified by reading the installed SDK source at langgraph_sdk/encryption/__init__.py.

Review notes

Just a deletion — no new content, no other files changed.

The `@encryption.encrypt.json.assistant` sub-decorator pattern documented
here does not exist in the langgraph_sdk `Encryption` class. The SDK only
supports `encrypt.blob`, `encrypt.json`, `decrypt.blob`, and `decrypt.json`
decorators. Per-model behavior is achieved by checking `ctx.model` inside
a regular handler.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 4, 2026

Mintlify preview ID generated: preview-remove-1772653942-19a9c7b

@cwlbraa Connor Braa (cwlbraa) changed the title Remove model-specific encryption handlers section deployments: remove model-specific encryption handlers section Mar 4, 2026
@cwlbraa Connor Braa (cwlbraa) enabled auto-merge (squash) March 4, 2026 19:57
@cwlbraa Connor Braa (cwlbraa) merged commit 018ee8e into main Mar 4, 2026
23 checks passed
@cwlbraa Connor Braa (cwlbraa) deleted the remove-model-specific-encryption-handlers branch March 4, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal langsmith For docs changes to LangSmith

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants